class OscUserEntity {
	bool isLogin;
	String gender;
	String name;
	String location;//0:黑名单,1:相互关注, 2:关注, 3:粉丝, 4:无
	int id;
	String avatar;
	String email;
	String url;

	OscUserEntity({this.isLogin, this.gender, this.name, this.location, this.id, this.avatar, this.email, this.url});

	OscUserEntity.fromJson(Map<String, dynamic> json) {
		gender = json['gender'];
		name = json['name'];
		location = json['location'];
		id = json['id'];
		avatar = json['avatar'];
		email = json['email'];
		url = json['url'];
		isLogin = json['isLogin'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['isLogin'] = this.isLogin;
		data['gender'] = this.gender;
		data['name'] = this.name;
		data['location'] = this.location;
		data['id'] = this.id;
		data['avatar'] = this.avatar;
		data['email'] = this.email;
		data['url'] = this.url;
		return data;
	}
}
